<div style="margin-top: 20px">
  <app-search></app-search>
<!--  <div style="float: right; margin-right: 1%">-->
<!--    <button nz-button nzType="primary" *ngIf="entryState=='3'||entryState=='4'" (click)="goWork({})"><i nz-icon nzType="search"></i>添加</button>&nbsp;&nbsp;&nbsp;-->
<!--    <button nz-button nzType="primary" *ngIf="entryState=='3'||entryState=='4'"><i nz-icon nzType="search"></i>导入</button>&nbsp;&nbsp;&nbsp;-->
<!--    <button nz-button nzType="primary"><i nz-icon nzType="search"></i>导出</button>-->
<!--  </div>-->
  <div style="clear: both"></div>


  <nz-table
    #rowSelectionTable
    nzShowPagination
    nzShowSizeChanger
    [nzData]="sendOfData"
    style="margin-top: 20px"
  >
    <thead>
    <tr>
      <th>序号</th>
      <th>姓名</th>
      <th *ngIf="entryState=='4'">原部门</th>
      <th *ngIf="entryState=='4'">原岗位</th>
      <th *ngIf="entryState=='4'">调动部门</th>
      <th *ngIf="entryState=='4'">调动岗位</th>
      <th>联系电话</th>
      <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let data of rowSelectionTable.data">
      <td>{{ data.skay }}</td>
      <td>{{ data.name }}</td>
      <td *ngIf="entryState=='4'">{{ data.nowPosting }}</td>
      <td *ngIf="entryState=='4'">{{ data.nowDepartment }}</td>
      <td>{{ data.phone }}</td>
      <td class="rosterUpdate">
        <button nz-button nzType="primary" class="shop-button" style="background-color: #fff; color: #1890ff; border: none" *ngIf="entryState=='1'" (click)="goWork(data)">办理入职</button>
        <button nz-button nzType="primary" class="shop-button" style="background-color: #fff; color: #1890ff; border: none" *ngIf="entryState=='2'" (click)="goWork(data)">办理转正</button>
        <button nz-button nzType="primary" class="shop-button" style="background-color: #fff; color: #1890ff; border: none" *ngIf="entryState=='3'" (click)="goWork(data)">办理离职</button>
        <button nz-button nzType="primary" class="shop-button" style="background-color: #fff; color: #1890ff; border: none" *ngIf="entryState=='4'" (click)="goWork(data)">办理调动</button>
      </td>
    </tr>
    </tbody>
  </nz-table>
</div>
